
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	request.setCharacterEncoding("utf-8");
	response.setContentType("text/html;charset=utf-8");
	
	String param = request.getParameter("q");
	List<String> data = new ArrayList<String>();
	data.add(0, "bradley,Bradley s");
	data.add(1, "jason,Jason s");
	data.add(2, "john,John R");
	data.add(3,"josh,Josh K");
	data.add(4, "julia,Julia W");
	
	for(int i = 0 ;i<data.size();i++){
		if(data.get(i).indexOf(param)!=-1){
			String[] text = data.get(i).split(",");
%>
	<li id="<%=text[0]%>">
		<div><strong><%=text[0] %></strong>(<%=text[1] %>)</div>
	</li>
<%
		}
	}
%>